Check Android License during Hub unlock#640
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThis PR refactors JWT license verification across the domain and data layers. A new Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@data/src/main/java/org/cryptomator/data/repository/HubRepositoryImpl.java`:
- Around line 101-112: In isAndroidLicenseValid (HubRepositoryImpl) remove the
redundant null/empty guard (androidLicense == null || androidLicense.isEmpty())
since callers already ensure a non-null/non-empty Hub-Android-License, and keep
the try/catch around AndroidLicenseVerifier.verify(...). Also fix the Timber
error call in the catch block to use the Throwable-first overload
(Timber.tag("HubRepositoryImpl").e(e, "Failed to validate Android license
retrieved from Hub")) so the exception is passed as the first argument; retain
the existing caught exception types (JWTVerificationException,
NoSuchAlgorithmException, InvalidKeySpecException, FatalBackendException).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 329253c7-4d5a-4a19-9953-0c955495d8f4
📒 Files selected for processing (3)
data/src/main/java/org/cryptomator/data/repository/HubRepositoryImpl.javadomain/src/main/java/org/cryptomator/domain/usecases/AndroidLicenseVerifier.javadomain/src/main/java/org/cryptomator/domain/usecases/DoLicenseCheck.java
No description provided.